#ifndef BONUSCATEGORIES_H
#define BONUSCATEGORIES_H


#include "dtwenty_global.h"


#include <data.h>


#include <QMetaType>


class DTWENTYSHARED_EXPORT BonusCategories : public Collection
{
    Q_OBJECT

public:
    enum Field
    {
        Field_FIRST = 0,

        Field_NAME = Field_FIRST,
        Field_START,
        Field_SEQUENCE,

        Field_LAST = Field_SEQUENCE
    };

    Q_INVOKABLE BonusCategories(QObject *parent = 0) :
        Collection(QT_TR_NOOP("Bonus Categories"), parent)
    {
    }

    BonusCategories(const BonusCategories& other) :
        Collection(other)
    {
    }

    Q_INVOKABLE virtual void onInitialize()
    {
        setField(Field_NAME, QT_TR_NOOP("Name"));
        setField(Field_START, QT_TR_NOOP("Start"));
        setField(Field_SEQUENCE, QT_TR_NOOP("Sequence"));

        if (childItems().count()) return;
    }

};


Q_DECLARE_METATYPE(BonusCategories*)


#endif // BONUSCATEGORIES_H
